package com.xiangfajun.register.demo.registerdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.boot.autoconfigure.web.servlet.TomcatServletWebServerFactoryCustomizer;
import org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableEurekaServer
public class RegisterDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(RegisterDemoApplication.class, args);
    }
    //
    // @Bean
    // TomcatServletWebServerFactory serverFactory(){
    //     // TomcatServletWebServerFactoryCustomizer
    //     TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory();
    //     factory.setPort(9088);
    //     ServerProperties
    //     TomcatServletWebServerFactoryCustomizer customizer = new TomcatServletWebServerFactoryCustomizer();
    //
    // }
}
